package cn.zxy;

public class HelloService {

    HelloProperties helloProperties;

    public HelloProperties getHelloProperties() {
        return helloProperties;
    }

    //自己定义一个方法用来输出显示
    public  String sayHello(String name){
        return helloProperties.getPrefix()+ name + helloProperties.getSuffix();
    }
    public void setHelloProperties(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }
}
